/*
 * EEGStdPosTest.cpp
 *
 *  Created on: Jan 2, 2010
 *      Author: zaca
 */

#include <biosignal.h>
#include <iostream>

using namespace std;
using namespace biosignal;

class EEGStdPosTest {
public:
	void print_position(string label) {
		eeg::EEGStdPos eegpos = eeg::EEGStdPos::Instance();
		try {
			const Position& pos = eegpos.get_std_position(label);
			cout << pos.theta() << " : " << pos.phi() << " : " << pos.radius()
					<< endl;
		} catch (PositionUndefined pu) {
			cout << pu.what() << endl;
		}

	}
	void run() {
		print_position("Nose");
		print_position("Nz");
		print_position("Nza");
		print_position("Cz");
	}

};

int main() {
	EEGStdPosTest test;
	test.run();
}
